<?php

namespace common\models\base;

use Yii;
use yii\db\ActiveRecord;
/**
 * This is the model class for table "rel_archive_and_material".
 *
 * @property integer $archive_id
 * @property integer $material_id
 */
class ArchiveAndMaterial extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'rel_archive_and_material';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['archive_id', 'material_id'], 'required'],
            [['archive_id', 'material_id'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'archive_id' => 'Archive ID',
            'material_id' => 'Material ID',
        ];
    }
}
